/**
 *
 */
package com.zhuoyue.elmt.entity;

import org.hibernate.validator.constraints.Length;

import com.eit.eitsite.common.persistence.DataEntity;

/**
 * 电梯配件更换记录Entity
 * @author chenhao
 * @version 2016-09-07
 */
public class FailureReplacementPart extends DataEntity<FailureReplacementPart> {

	private static final long serialVersionUID = 1L;
	private String formId;		// 配件更换记录ID
	private String deviceCode;		// 设备注册代码
	private String failureNo;		// 故障报告单编号
	private String accessoriesName;		// 配件名称
	private String accessoriesModel;		// 配件型号
	private String accessoriesNumber;		// 图号
	private String drawingNumber;		// 数量
	private String remark;		// 备注

	public FailureReplacementPart() {
		super();
	}

	public FailureReplacementPart(String id){
		super(id);
	}

	@Length(min=1, max=20, message="配件更换记录ID长度必须介于 1 和 20 之间")
	public String getFormId() {
		return formId;
	}

	public void setFormId(String formId) {
		this.formId = formId;
	}

	@Length(min=1, max=20, message="设备注册代码长度必须介于 1 和 20 之间")
	public String getDeviceCode() {
		return deviceCode;
	}

	public void setDeviceCode(String deviceCode) {
		this.deviceCode = deviceCode;
	}

	@Length(min=1, max=20, message="故障报告单编号长度必须介于 1 和 20 之间")
	public String getFailureNo() {
		return failureNo;
	}

	public void setFailureNo(String failureNo) {
		this.failureNo = failureNo;
	}

	@Length(min=0, max=200, message="配件名称长度必须介于 0 和 200 之间")
	public String getAccessoriesName() {
		return accessoriesName;
	}

	public void setAccessoriesName(String accessoriesName) {
		this.accessoriesName = accessoriesName;
	}

	@Length(min=0, max=200, message="配件型号长度必须介于 0 和 200 之间")
	public String getAccessoriesModel() {
		return accessoriesModel;
	}

	public void setAccessoriesModel(String accessoriesModel) {
		this.accessoriesModel = accessoriesModel;
	}

	@Length(min=0, max=20, message="图号长度必须介于 0 和 20 之间")
	public String getAccessoriesNumber() {
		return accessoriesNumber;
	}

	public void setAccessoriesNumber(String accessoriesNumber) {
		this.accessoriesNumber = accessoriesNumber;
	}

	@Length(min=0, max=200, message="数量长度必须介于 0 和 200 之间")
	public String getDrawingNumber() {
		return drawingNumber;
	}

	public void setDrawingNumber(String drawingNumber) {
		this.drawingNumber = drawingNumber;
	}

	@Length(min=0, max=200, message="备注长度必须介于 0 和 200 之间")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}